package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Add_Digits {

	public static void main(String[] args) {
		
		System.out.println("Please enter a number");
		
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		
		int sum=0;
		
		for(;n>0;)
		{
		int remainder=n%10;
		sum=sum+remainder;
		n=n/10;
		}
System.out.println("The Addion of Digits of given number is  "+sum);
	}

}
